﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using BeatEmUp.Enums;

namespace BeatEmUp.World
{
    public class StaticElement : Element
    {
        public Rectangle GetCollisionRect(Viewport viewport)
        {
            int zoneHeight = 10;
         
            return new Rectangle(
                (int)AbsolutePosition.X - viewport.WorldPosition,
                (int)AbsolutePosition.Y + (int)drawable.Size.Y - zoneHeight, 
                (int)this.drawable.Size.X,
                zoneHeight
            );
        }

        public StaticElement(GameManager game, Vector2 absolutePosition, Drawable.IDrawable drawable, float depth)
            :base(game, absolutePosition, drawable, depth)
        { }
    }
}
